package com.zwps.biz.controller.http;

import com.zwps.biz.api.model.vo.ststbprp.ReservoirConstructionNodesDateVO;
import com.zwps.biz.api.model.vo.ststbprp.ReservoirConstructionNodesVO;
import com.zwps.biz.api.model.vo.ststbprp.ReservoirConstructionTypeVO;
import com.zwps.biz.api.model.vo.ststbprp.StStbprpBVO;
import com.zwps.biz.domain.service.StStbprpBService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.List;

@RestController
@Validated
@RequestMapping("brief/station")
public class StStbprpController {

    @Autowired
    private StStbprpBService service;

    @Tag(name = "工程概况")
    @GetMapping("station_code")
    @Operation(summary = "获取测站")
    public List<StStbprpBVO> getStcd(@Valid @RequestParam(value = "sttp", required = false) String sttp) {
        return service.getStcd(sttp);
    }

    @Tag(name = "工程概况")
    @GetMapping("getReservoirConstructionNodes")
    @Operation(summary = "获取建设阶段数据")
    public List<ReservoirConstructionTypeVO> getReservoirConstructionNodes() {
        return service.getReservoirConstructionNodes();
    }

}
